package com.cn.yang.model.news;

import com.cn.yang.util.PageUtil;

public class NewsModel {
    private Integer id;
    private String title;
    private String content;
    private String time;
    private Integer type;
    private String classifyName;
    private PageUtil pageUtil;
    private String dateRi;
    private String dateTian;
    
    public String getDateRi() {
        String a = getTime();
        String b = a.substring(a.lastIndexOf("-")+1);
        return b;
    }
    
    public void setDateRi(final String dateRi) {
        this.dateRi = dateRi;
    }
    
    public String getDateTian() {
        String a = getTime();
        String b = a.substring(0,a.lastIndexOf("-"));
        return b;
    }
    
    public void setDateTian(final String dateTian) {
        this.dateTian = dateTian;
    }
    
    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public PageUtil getPageUtil() {
        return pageUtil;
    }

    public void setPageUtil(PageUtil pageUtil) {
        this.pageUtil = pageUtil;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
